package com.zb.zeus.common.redis.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.redis.core.RedisTemplate;
import org.springframework.stereotype.Component;

import com.zb.zeus.common.redis.service.BaseRedisComponent;


/**
 * 示例
 * @author liangfan
 * @date 2021/07/13 14:13
 **/

@Component
public class ExpRedisComponent extends BaseRedisComponent {

    @Autowired
    public ExpRedisComponent(RedisTemplate redisTemplate) {
        super(new PercentRoundExpireTime(), redisTemplate);

    }

    @Override
    public String getKeyPre() {
        return "common:exp:";
    }
}
